<style>
.comment {
	border-bottom: 3px dashed #ccc;
	margin-bottom: 20px;
}
</style>

<!-- <div>
<?php //foreach($list as $result):?>
<div class="comment">
	<?php //echo $result['Post']['title']; ?>
</div>
<?php //endforeach;?>
</div> -->
<div class="mainbar" id="contentPost">
		<?php foreach ($posts as $post):?>
			<div class="article">
		<h2>
			<a class="linkTitle" href="/posts/detail/<?php echo $post['Post']['id']; ?>"><span><?php echo $post['Post']['title']; ?></span>
			</a>
		</h2>
		<div class="clr"></div>
			<p class="infopost">
			<?php echo date ( 'F j, o', strtotime ( $post ['Post'] ['created'] ) ); ?>
			<span>&nbsp;&bull;&nbsp;</span>
			Posted by <a href="/adminposts/profile/<?php echo $post['Post']['user_id']; ?>"><?php echo $post['Post']['username']; ?></a>
			&nbsp;|&nbsp;
			with <a
				href="/posts/detail/<?php echo $post['Post']['id']; ?>#commentListID"
				class="com"><?php echo count($post['Comment']);?> Comments</a>
		</p>
		<img src="<?php echo $post['Post']['thumbnail']; ?>" width="201"
			height="146" alt="" class="fl" />

		<div align="justify"><?php echo $post['Post']['body']; ?></div>

		<div class="clr"></div>
		<p class="spec" align="right">
			<a href="/posts/detail/<?php echo $post['Post']['id']; ?>" class="rm">Read
				more &raquo;</a>
		</p>
	</div>
		<?php endforeach;?>
		<div id="loading">Loading data...</div>
</div>
<!-- Sidebar -->
<div class="sidebar">
      <?php
						echo $this->element ( 'sidebar', array (
								"sidebarList" => $sidebarList 
						) );
						?>
						</div>
<!-- end Sidebar -->
<div class="clr"></div>

